package vn.orderonline.core.dao.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "BILL")
public class Bill implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer billId;
	private Integer orderId;
	private Float totalPrice;
	private Float deliveryPrice;
	private String paymentMethod;
	private String note;
	
	public Bill() {
		
	}

	@Id
	@GeneratedValue
	@Column(name = "BILL_ID", unique = true, nullable = false, precision = 10, scale = 0)
	public Integer getBillId() {
		return billId;
	}

	public void setBillId(Integer billId) {
		this.billId = billId;
	}

	@Column(name = "ORDER_ID", nullable = false, unique = true, precision = 10, scale = 0)
	public Integer getOrderId() {
		return orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	@Column(name = "TOTAL_PRICE", nullable = false)
	public Float getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(Float totalPrice) {
		this.totalPrice = totalPrice;
	}

	@Column(name = "DELIVERY_PRICE", nullable = false)
	public Float getDeliveryPrice() {
		return deliveryPrice;
	}

	public void setDeliveryPrice(Float deliveryPrice) {
		this.deliveryPrice = deliveryPrice;
	}

	@Column(name = "PAYMENT_METHOD", length = 50)
	public String getPaymentMethod() {
		return paymentMethod;
	}

	public void setPaymentMethod(String paymentMethod) {
		this.paymentMethod = paymentMethod;
	}

	@Column(name = "NOTE", length = 2000)
	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}
	
}
